//
//  SAAberrations.h
//  ronchigram
//
//  Created by James LeBeau on 5/26/10.
//  Copyright 2010 subangstrom. All rights reserved.
//
//	Aberration values should all be in angstroms!

#import <Cocoa/Cocoa.h>
#import "constants.h"


@interface SAAberration : NSObject {

	NSMutableDictionary *aberrDict;
	
	int n;
	int m;
	float Cnma;
	float Cnmb;
	NSString *label;
	float min;
	float max;
	BOOL symRange;

}

@property int n;
@property int m;
@property float Cnma;
@property float Cnmb;
@property (copy) NSString *label;
@property float min;
@property float max;
@property BOOL symRange;

+ (SAAberration*) aberrationWithN: (int) nVal M: (int) mVal Cnma: (float) cnmaVal Cnmb: (float) cnmbVal;
- (NSMutableDictionary*) coefficients;

- (void) setMin: (float) newMin Max: (float) newMax;

- (id) aberrationForKey: (id) key;
- (void) setAberration: (NSNumber *)  coeff ForKey: (id) key;


@end
